package com.example.demo.demos.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyTomcatListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("tomcat启动");
        ServletContextListener.super.contextInitialized(sce);
    }
}
